package com.ruoyi.user.api.model;

import com.ruoyi.system.api.model.LoginUser;
import com.ruoyi.user.api.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginAppUser extends LoginUser implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer userId;

    private String phone;

    private String token;

    private User user;

    private String code;

    private Long loginTime;

    private Long expireTime;

    private Set<String> permissions;

    private Set<String> roles;

    private String ipaddr;
}
